package hk.m4s.lr.repair.test.ui.goods;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.Switch;

import framework.common.baseui.UeBaseActivity;
import hk.m4s.lr.repair.test.R;

/**
 * Created by qi.wang on 2017/11/30.
 * 收银台
 */

public class SelectMoneyActivity extends UeBaseActivity {
    private RelativeLayout showConfim,showDilog;
    private Button payMoney,payNow;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        baseSetContentView(R.layout.activity_select_money);
        hiddenFooter();
        showGoBackBtn();
        payMoney=(Button)findViewById(R.id.payMoney);
        showConfim=(RelativeLayout) findViewById(R.id.showConfim);
        showDilog=(RelativeLayout) findViewById(R.id.showDilog);
        setTitleText("收银台");
    }
    public void onClick(View view){

        switch(view.getId()){
            case R.id.payMoney:
                payMoney.setVisibility(View.GONE);
                showConfim.setVisibility(View.VISIBLE);
                break;
            case R.id.cancleBtn:
                payMoney.setVisibility(View.VISIBLE);
                showConfim.setVisibility(View.GONE);
                break;
            case R.id.payNow:
                showDilog.setVisibility(View.VISIBLE);
                showConfim.setVisibility(View.GONE);
                break;
            case R.id.alert_close_btn:
                payMoney.setVisibility(View.VISIBLE);
                showDilog.setVisibility(View.GONE);
                break;
            case R.id.home_pay_order:
                payMoney.setVisibility(View.VISIBLE);
                showDilog.setVisibility(View.GONE);
                break;
        }
    }
}
